package com.ruoyi.mall.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 订单详情对象 mall_order_detail
 *
 * @author ruoyi
 * @date 2024-01-11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MallOrderDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单详情ID
     */
    private Long orderDetailId;

    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    private Long orderId;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long goodsId;

    /**
     * 规格ID
     */
    @Excel(name = "规格ID")
    private Long normId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodsName;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String goodsImg;

    /**
     * 规格名称
     */
    @Excel(name = "规格名称")
    private String normName;

    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal normPrice;

    /**
     * 购买数量
     */
    @Excel(name = "购买数量")
    private Long num;
}
